﻿//源代码编码必须是: UTF-8(BOM)
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class myLabel : public QLabel
{
    Q_OBJECT
public:
    explicit myLabel(QWidget *parent = nullptr);

    //鼠标进入事件
    void enterEvent(QEvent *Event);

    //鼠标离开事件
    void leaveEvent(QEvent *);

    //鼠标的按下
    void mousePressEvent(QMouseEvent *ev);

    //鼠标的释放
    void mouseReleaseEvent(QMouseEvent *ev);

    //鼠标的移动
    void mouseMoveEvent(QMouseEvent *ev);

    //通过event事件分发器 拦截 鼠标按下事件
    bool event(QEvent *e);

signals:

public slots:
};

#endif // MYLABEL_H
